/*
 * All content copyright http://www.j2eefast.com, unless 
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.produce.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.produce.pms.entity.PmsEntrustEntity;
import com.j2eefast.produce.pms.entity.PmsRegisterEntrustEntity;
import org.apache.ibatis.annotations.Param;

/**
 * <p>登记委托</p>
 *
 * @author: summer
 * @date: 2021-05-30 16:47
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface PmsEntrustMapper extends BaseMapper<PmsEntrustEntity> {

	public boolean deleteByIds(@Param("ids") Long[] ids);

	//	样品检测数据校核
	public boolean updateCheck(@Param("id") Long id, @Param("checkStatus") int checkStatus, @Param("updateBy")String updateBy );

	//	样品检测数据签发
	public boolean issuedCheck(@Param("id") Long id, @Param("issuedStatus") int issuedStatus, @Param("updateBy")String updateBy );

	public PmsEntrustEntity selectEntrust(@Param("entrustCode") String entrustCode);

	//查询最大编号
	public PmsEntrustEntity selectRegister();



	/**
	 * 页面查询流程实例分页
	 * @return
	 */
	Page<PmsEntrustEntity> findPage(IPage<?> params,
                                         	@Param("scene") String scene,
//                                         @Param("sample_type") String sampleType,
                                            @Param("sql_filter") String sql_filter);


	//保存信息
	boolean save(PmsEntrustEntity pmsEntrustEntity);

	public boolean updateTask(PmsEntrustEntity pmsEntrustEntity );

}
